package com.hk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hk.domain.Dept;
import com.hk.vo.TreeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    List<TreeVo> selectOrgTree(); // 查询根节点
    List<TreeVo> selectChildrenByParentId(Long parentId); // 根据父节点ID查询子节点

    ArrayList<Integer> selectListId(ArrayList<Integer> list2);
}
